package com.boylegu.springboot_vue.dao;

import com.boylegu.springboot_vue.entities.Teachers;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface TeachersRepository extends MongoRepository<Teachers, String> {

    public Teachers findById(String id);
    public Page<Teachers> findAll(Pageable page);
}
